package com.ifox.hgx.spring.annotation.controller;

import com.ifox.hgx.spring.annotation.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class PersonController {

    @Autowired
    private PersonService personService ;

    public void prin(){
        System.out.println(personService.getPersonById(12312321));
    }

    @Override
    public String toString() {
        return "PersonController{" +
                "personService=" + personService +
                '}';
    }
}
